package com.woniu.springbootrbac.mapper;

import com.woniu.springbootrbac.vo.UserAo;
import com.woniu.springbootrbac.entity.SysUser;
import com.woniu.springbootrbac.dto.UserDto;

import java.util.List;

/**
* @author donghang
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2022-11-24 17:33:06
* @Entity com.woniu.entity.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    SysUser selectByTel(String tel);

    SysUser login(UserDto dto);

    List<UserAo> selByLike(UserDto dto);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

}
